package com.ethink.warehouse.facade.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.warehouse.api.MateInventoryOtherInLogDetailFacade;
import com.ethink.warehouse.api.info.MateInventoryOtherInLogDetailInfo;
import com.ethink.warehouse.api.request.MateInventoryOtherInLogDetailAddRequest;
import com.ethink.warehouse.api.request.MateInventoryOtherInLogDetailQueryRequest;
import com.ethink.warehouse.api.request.MateInventoryOtherInLogDetailUpdateRequest;
import com.ethink.warehouse.api.response.MateInventoryOtherInLogDetailAddResponse;
import com.ethink.warehouse.api.response.MateInventoryOtherInLogDetailDeleteResponse;
import com.ethink.warehouse.api.response.MateInventoryOtherInLogDetailUpdateResponse;
import com.ethink.warehouse.service.MateInventoryOtherInLogDetailService;
import java.util.List;

/**
 * 其他入库明细 Facade接口实现
 *
 * @author default
 * @date 2023-02-09
 */
@RestController
@Slf4j
@RequestMapping("warehouse-service/facade/v1/mateInventoryOtherInLogDetail")
public class MateInventoryOtherInLogDetailFacadeImpl implements MateInventoryOtherInLogDetailFacade {

    @Autowired
    private MateInventoryOtherInLogDetailService mateInventoryOtherInLogDetailService;

    @Override
    public Page<MateInventoryOtherInLogDetailInfo> queryMateInventoryOtherInLogDetail(MateInventoryOtherInLogDetailQueryRequest request) {
        return mateInventoryOtherInLogDetailService.queryMateInventoryOtherInLogDetail(request);
    }

    @Override
    public MateInventoryOtherInLogDetailInfo getMateInventoryOtherInLogDetailById(Long mateInventoryOtherInLogDetailId) {
        return mateInventoryOtherInLogDetailService.getMateInventoryOtherInLogDetailById(mateInventoryOtherInLogDetailId);
    }

    @Override
    public List<MateInventoryOtherInLogDetailInfo> listMateInventoryOtherInLogDetail(MateInventoryOtherInLogDetailQueryRequest request) {
        return mateInventoryOtherInLogDetailService.listMateInventoryOtherInLogDetail(request);
    }

    @Override
    public MateInventoryOtherInLogDetailAddResponse addMateInventoryOtherInLogDetail(MateInventoryOtherInLogDetailAddRequest request) {
        return mateInventoryOtherInLogDetailService.addMateInventoryOtherInLogDetail(request);
    }

    @Override
    public MateInventoryOtherInLogDetailUpdateResponse updateMateInventoryOtherInLogDetail(MateInventoryOtherInLogDetailUpdateRequest request) {
        return mateInventoryOtherInLogDetailService.updateMateInventoryOtherInLogDetail(request);
    }

    @Override
    public MateInventoryOtherInLogDetailDeleteResponse deleteMateInventoryOtherInLogDetail(Long mateInventoryOtherInLogDetailId) {
        return mateInventoryOtherInLogDetailService.deleteMateInventoryOtherInLogDetail(mateInventoryOtherInLogDetailId);
    }

}